<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">

<ui:composition>
	<h:outputText value="System Error: Order model current is null"
		rendered="#{orderModel.current== null}" />
	<h:panelGrid id="orderInfoOutputPanel" columns="2"
		rendered="#{orderModel.current!= null}">
		<h:outputText value="Customer" />
		<h:outputText
			value="#{orderModel.current.customer.firstName}   #{orderModel.current.customer.lastName}  " />
			<h:outputText value="order number" />
		<h:outputText value="#{orderModel.current.number}" />
		<h:outputText value="ordered date" />
		<h:outputText value="#{orderModel.current.orderedDate}" />
		<h:outputText value="requireed date" />
		<h:outputText value="#{orderModel.current.requiredDate}" />
		<h:outputText value="prepared date" />
		<h:outputText value="#{orderModel.current.preparedDate}" />
		<h:outputText value="delivered date" />
		<h:outputText value="#{orderModel.current.deliveredDate}" />
		<h:outputText value="paid amount" />
		<h:outputText value="#{orderModel.current.paidAmount}" />
		<h:outputText value="discount amount" />
		<h:outputText value="#{orderModel.current.discountAmount}" />
		<h:outputText value="constant order" />
		<p:selectBooleanCheckbox value="#{orderModel.current.constant}"
			disabled="true" />
		<h:outputText value="All or nothing" />
		<p:selectBooleanCheckbox value="#{orderModel.current.allOrNothing}"
			disabled="true" />
		<h:outputText value="comments" />
		<h:inputTextarea value="#{orderModel.current.comments}"
			disabled="true" />
	</h:panelGrid>
</ui:composition>
</html>